<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
    <div class="main">
        <div class="sidebar">
            <div class="menu_wrap">
                <!--menu-->
                <!--menu-->
                <div class="menu">
                    <div class="menu_title"><?php echo $category[0][0][lang('field_category_title')];?></div>
                    <ul>
                    <?php foreach ($menu as $m){?>
                        <li>
                        <a href="<?php echo site_url($m['uri'].'/'.$m['id']);?>"><?php echo $m[lang('field_content_title')];?></a>
                        </li>             
                    <?php }?>
                    </ul>
                </div>
            </div>
            <div class="contact_wrap">
                <div class="contact">
                <!--side contact start-->
                <?php echo ${lang('field_side_contact')};?>
                <!--side contact end-->
                </div>
            </div>
        </div>
        <div class="mainbody">
            <div class="title_wrap">
                <!--title-->
                <div class="sitemap">
                <?php echo lang('page_location');?>：
                <?php foreach ($location as $l){?>
                    <?php if($l['link']){?>
                    <span><?php echo $l['link'];?></span>
                    <?php }?>
                    <?php if($l['url']){?>
                    <a href="<?php echo site_url($l['url']);?>"><?php echo $l['title'];?></a>
                    <?php }else {?>
                    <span><?php echo $l['title'];?></span>
                    <?php }?>
                <?php }?>
                </div>
            </div>
            <div class="content_wrap">
                <!--content-->
                <script src="../plugins/jquery.validate.min.js" type="text/javascript"></script>
                <script src="js/guestbook.js" type="text/javascript"></script>
                <form id="collection" action="" method="POST">
                    <table class="noBorder collection" style=" width:750px; margin:20px 0px; text-align:right;">
                        <tr>
                            <td style=" width:160px;"></td>
                            <td class="itemValue"><input name="title" value="标题" onfocus="Cls(this,'标题',true)" class="text" style=" width:400px;" type="text" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue"><textarea name="content" style=" width:400px; height:80px; line-height:20px; color:#999;" onfocus="Cls(this,'内容',true)">内容</textarea></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue">
                                <input name="nickname" value="称呼" onfocus="Cls(this,'称呼',true)" class="text" style=" width:150px;" type="text" />
                                <input name="sex" class="radio" value="1" id="lady" type="radio"/><label for="lady">女士</label>
                                <input name="sex" class="radio" value="0" id="man" checked="checked" type="radio"/><label for="man">先生</label>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue"><input name="tel" value="联系电话" onfocus="Cls(this,'联系电话',true)" class="text" type="text" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue"><input name="email" value="电子邮箱" onfocus="Cls(this,'电子邮箱',true)" class="text" type="text" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue"><input name="qq" value="QQ号码" onfocus="Cls(this,'QQ号码',true)" class="text" type="text" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue"><input name="address" value="联系地址" onfocus="Cls(this,'联系地址',true)" class="text" style=" width:400px;" type="text" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue"><input name="company" value="公司/单位" onfocus="Cls(this,'公司/单位',true)" class="text" style=" width:400px;" type="text" /></td>
                        </tr>
                        <tr style="display:none;">
                            <td></td>
                            <td class="itemValue"><input name="ext1" value="备用字段1" onfocus="Cls(this,'备用字段1',true)" class="text" type="text" /></td>
                        </tr>
                        <tr style="display:none;">
                            <td></td>
                            <td class="itemValue"><input name="ext2" value="备用字段2" onfocus="Cls(this,'备用字段2',true)" class="text" type="text" /></td>
                        </tr>
                        <tr style="display:none;">
                            <td></td>
                            <td class="itemValue"><input name="ext3" value="备用字段3" onfocus="Cls(this,'备用字段3',true)" class="text" type="text" /></td>
                        </tr>
                        <tr style="display:none;">
                            <td></td>
                            <td class="itemValue"><input name="ext4" value="备用字段4" onfocus="Cls(this,'备用字段4',true)" class="text" type="text" /></td>
                        </tr>
                        <tr style="display:none;">
                            <td></td>
                            <td class="itemValue"><input name="ext5" value="备用字段5" onfocus="Cls(this,'备用字段5',true)" class="text" type="text" /></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue">
                                <img id="verify_img" src="<?php echo site_url('file/verify')?>" onclick="VerifyCodeRefresh(this)" style=" cursor:pointer;" alt="" />
                                <a href="javascript:VerifyCodeRefresh('verify_img')">看不清，换一张</a><br />
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue">
                                <input name="verify_code" value="验证码" onfocus="Cls(this,'验证码',true)" class="text" style=" width:150px;" type="text" />
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td class="itemValue">
                                <input class="btn" type="submit" value="提交" />
                            </td>
                        </tr>
                    </table>
                </form>
            <!--content-->
            </div>    
        </div>
        <div class="clearFloat"></div>
    </div>